package com.fuego.creditsystemcommodity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Good;

import java.util.List;


public interface GoodMapper extends BaseMapper<Good> {

    List<Good> queryGoodOfShop(@Param("shopId") Long shopId);

    List<Good> queryAllGood();

    List<Good> queryGoodById(@Param("goodId")Long goodId);

    List<Good> queryGoodByIds(@Param("goodIds")List<Long> goodIds);

    List<Good> randomRecommend(@Param("size") Integer size);

    List<Good> searchGood(@Param("title") String goodName);
}
